package com.share.shop.h5.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2023-03-07
 */
@Data
@Accessors(chain = true)
@TableName("tu_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String password;


    @ApiModelProperty("微信小程序-openid")
    private String openid;

    @ApiModelProperty("微信小程序-sessionKey")
    private String sessionKey;
    @ApiModelProperty("微信小程序-unionid")
    private String unionid;

    private String sex;
    /**
     * 手机号码
     */
    private String phone;
    /**
     * 用户邮箱
     */
    private String email;
    /**
     * 账号状态 1：正常；0：停用 ; 2: 已过期
     */
    private String status;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

}
